package com.example.demo.service;

import com.example.demo.mapper.DistrictMapper;
import com.example.demo.pojo.District;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
@Transactional
public class DistrictServiceImpl implements DistrictService{
    @Autowired
    DistrictMapper districtMapper;
    @Override
    public List<District> getAllDistrict() {
        return districtMapper.selectAllDistrict();
    }
}
